﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Bricks.Site.Models
{
    /// <summary>
    /// 用户登录模型
    /// </summary>
    public class ContractInfoView
    {
        public Guid ID { get; set; }

        [Display(Name = "项目ID")]
        public Guid PID { get; set; }

        [StringLength(255)]
        [Display(Name = "合同单位名称")]
        public string ContractUnitName { get; set; }

        [StringLength(255)]
        [Display(Name = "标段编号")]
        public string ContractCode { get; set; }

        [StringLength(255)]
        [Display(Name = "标段名称")]
        public string ContractName { get; set; }

        [Display(Name = "标段类型")]
        public string ContractType { get; set; }

        [Display(Name = "开始桩号")]
        public string StartStake { get; set; }

        [Display(Name = "结束桩号")]
        public string EndStake { get; set; }

        [Display(Name = "计划开工日期")]
        public string ScheduledStartDate { get; set; }

        [Display(Name = "计划完工日期")]
        public string ScheduledEndDate { get; set; }

        [Display(Name = "项目总工期")]
        public int? ProjectPeriod { get; set; }

        [Display(Name = "标段金额")]
        public decimal? ContractMoney { get; set; }

        [Display(Name = "施工图金额")]
        public decimal? ConstructionDrawMoney { get; set; }

        [Display(Name = "变更增减金额")]
        public decimal? AlterIncreaseOrDecreaseMoney { get; set; }

        [Display(Name = "变更后金额")]
        public decimal? AfterAlterMoney { get; set; }

        [Display(Name = "累计计量金额")]
        public decimal? AccumulativeEstimateMoney { get; set; }

        [Display(Name = "累计计量比例")]
        public string AccumulativeEstimateProportion { get; set; }

        [Display(Name = "对应单位")]
        public Guid CorrespondenceUnit { get; set; }

        [Display(Name = "对应单位名称")]
        public string CorrespondenceUnitName { get; set; }

        [Display(Name = "合同内容简介")]
        public string ContractContent { get; set; }

        [Display(Name = "其他附件")]
        public string Attachment { get; set; }

        //用来做界面树形展示用，有个施工类和其他类
        public Guid DisplayPID { get; set; }

        //合同来源，暂时有“施工类”和“其他类”俩种，用去区分从不同的表获取数据
        public string ContractSource { get; set; }
    }
}